package com.github.wxiaoqi.security.biz.api;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.wxiaoqi.security.biz.biz.fightGroup.FightGroupGoodsInfoBiz;

/**
 * 拼团相关接口
 * @author he
 *
 */
@Controller
@RequestMapping("api/fightGroup")
public class FightGroupController extends BaseController{
	
	@Autowired
	private FightGroupGoodsInfoBiz fightGroupGoodsInfoBiz;
	
	/**
	 * 查询拼团商品信息列表
	 * @return
	 * @throws Exception 
	 */ 
	@ResponseBody
	@RequestMapping(value = "/queryFightGroupGoodsInfo", method = RequestMethod.POST)
    public Map<String, Object> queryFightGroupGoodsInfo(HttpServletRequest request) throws Exception {
		Map<String, Object> param = ParamStr2Bean(request);
		Map<String, Object> response = fightGroupGoodsInfoBiz.queryFightGroupGoodsInfo(param);
		return response;
    }
	
	/**
	 * 查询拼团商品信息明细
	 * @return
	 * @throws Exception 
	 */ 
	@ResponseBody
	@RequestMapping(value = "/queryFightGroupGoodsDetailInfo", method = RequestMethod.POST)
	public Map<String, Object> queryFightGroupGoodsDetailInfo(HttpServletRequest request) throws Exception {
		Map<String, Object> param = ParamStr2Bean(request);
		Map<String, Object> response = fightGroupGoodsInfoBiz.queryFightGroupGoodsDetailInfo(param);
		return response;
	}

}
